package com
{
	import org.puremvc.as3.multicore.patterns.facade.Facade;

	public class ApplicationFacade extends Facade
	{
		/**
		 * Notification name constants
		 */
		public static const STARTUP:String = "startup";
		 
		/**
		 * Singleton ApplicationFacade Factory Method
		 */
		public static function getInstance(key:String):ApplicationFacade {
			if(instanceMap[key] == null) instanceMap[key] = new ApplicationFacade(key);
			return instanceMap[key] as ApplicationFacade;
		} 
		
		public function startup(app:coffee):void {
			sendNotification(STARTUP, app);
		}
		
		public function ApplicationFacade(key:String) {
			//TODO: implement function
			super(key);
		}
	}
}